class AdminController < ApplicationController

  layout "admin"
  
  def add_user
    if request.get?
      @user = User.new
    else
      @user = User.new( params[:user ])
      #@user.created_at = Time.now
      #@user.last_seen = @user.created_at
      if @user.save
        redirect_to_index("User #{@user.username} created")
      end
    end
  end
  
    
  def delete_user
  end
  
  def list_users
  end
  
  def list_users
    @all_users = User.find(:all)
  end
  
  
end
